﻿//===============================================================================
// Apolineo Patterns & Practices LeanEngine Framework
//===============================================================================
// Copyright © Apolineo Desenvolvimento de Sistemas Ltda.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================

using System;
using System.Windows.Forms;

namespace LeanEngine.SalesConcept.Windows
{
    public partial class FormSearchSalesman : Form
    {
        public FormSearchSalesman()
        {
            InitializeComponent();
        }

        private void searchControlOfCustomer1_AddNewCustomer()
        {
            using (var form = new FormMaintenanceSalesman())
            {
                form.ShowDialog();
            }
        }

        private void searchControlOfCustomer1_UpdateCustomer(LeanEngine.SalesConcept.Entity.Salesman obj)
        {
            using (var form = new FormMaintenanceSalesman())
            {
                form.SetControlsValues(obj);
                form.ShowDialog();
            }
        }
    }
}
